<?php

class LoginService {

    private $loginDAO;

	/*
	 * @method atnaujinamas $city objekta
	 * @param $city objektas
	 */
	public function isUserExist($username = '',$password = ''){
		return $this->loginDAO->isUserExist($username,$password);
	}

    /*
	 * @method atnaujinamas $city objekta
	 * @param $city objektas
	 */
	public function isUser($username = ''){
		return $this->loginDAO->isUser($username);
	}
	
	/*
	 * @method atnaujinamas $city objekta
	 * @param $city objektas
	 */
	public function registrate($username = '',$email = '',$password = ''){
	   $this->loginDAO->registrate($username,$email,$password);
	}
	

	function LoginService(){
              include_once BASEDAO;
			  include_once LOGINDAO;
		      include_once ACCOUNTENTITY;
		      $this->loginDAO= new LoginDAO();    
	}
}

?>